const path = require('path');
const { merge } = require('webpack-merge');//合并对象
const common = require('./webpakc.common.config')
module.exports=merge(common,{
    devServer: {
        static: {
            directory: path.join(__dirname, 'dist'),
        },
        compress: true, // gzip压缩
        port: 9000, // 指定端口
        open: true, // 自动打开浏览器
    },
    devtool: 'inline-source-map'  //源码映射
})